//服务必引入injectable
import { Injectable } from '@angular/core';

//自定义配置文件
import { DbConfig } from "../config/db";


//obj对象
import { Observable } from 'rxjs';
//头部信息
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';

@Injectable()

export class ZwpzService {

  constructor(private http: HttpClient) {

  }

  //查询免费试听接口
  getFreePlay(): Observable<any> {
    return this.http.get(DbConfig.baseUrl + "index/home/chaperbook");
  }

  //查询免费试听接口
  getFreeUp(fa): Observable<any> {
    return this.http.get(DbConfig.baseUrl + "index/home/chaperbook?id=" + fa);
  }


}
